package com.bbex.controller;


import com.bbex.pojo.GlobalMessageResponseVo;
import com.bbex.service.InfoService;
import com.bbex.service.ShareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import reactor.core.publisher.Mono;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Title :
 * Description : 活动管理
 * Copyright (C) zw.FinTec
 *
 * @author department:研发部
 * @version 修改历史:
 * 修改人 修改日期 修改描述
 *  -------------------------------------------<
 */
@Controller
@RequestMapping("/bbuni/info")
public class InfoController {
 @Autowired
 private InfoService infoService;
    /**
     *  资讯数据显示接口
     * @return
     */
    @RequestMapping("/getMessage")
    @ResponseBody
    public Mono getMessage(){
        List <Map> list=infoService.findAll();
        return  Mono.just(GlobalMessageResponseVo.newSuccessInstance(list));
    }
}
